# @Author: Eric Ito
# @Date: 1/26/2009
# Project Euler problem 6

"""
Find the difference between the sum of the squares
of the first one hundred natural numbers and the 
square of the sum
"""
from math import *

def main():
	squareOfSum = 0
	sumOfSquares = 0
	for i in xrange(1,101):
		sumOfSquares += i**2
		squareOfSum += i
	squareOfSum *= squareOfSum	
	print abs(squareOfSum-sumOfSquares)

if __name__ == '__main__':
	main()
